import threading
import requests


def fetch_url(url):
    response = requests.get(url)
    print(f"Request to {url} status code: {response.status_code}")


if __name__ == "__main__":
    urls = ['http://localhost:9090/account/pay' for _ in range(20)]
    threads = []
    for url in urls:
        thread = threading.Thread(target=fetch_url, args=(url,))
        thread.start()
        threads.append(thread)
    for thread in threads:
        thread.join()
